package com.mall4j.cloud.coupon.service;

import com.mall4j.cloud.api.coupon.bo.CouponBO;
import com.mall4j.cloud.api.coupon.dto.CouponUseReq;
import com.mall4j.cloud.api.coupon.dto.CouponUseResultDto;
import com.mall4j.cloud.api.coupon.dto.UpdateCouponOrderReq;
import com.mall4j.cloud.coupon.model.UserCoupon;

import java.util.List;

public interface UserCouponService {

    List<CouponBO> getUserCouponBo(long userId);
    List<UserCoupon> getUserCoupon(long userId);
    // 使用优惠卷，返回使用结果
    CouponUseResultDto useCoupon(long userId,CouponUseReq useReq);
    int updateCouponToUse(long userId, UpdateCouponOrderReq useReq);
    long getUserCouponValueByOrderId(String orderId);
    long allocateUserCoupon(int couponId,long userId,String channel);
}
